<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //1.无参无返回值
    function f1(){
        console.log("f1");
    }
    f1();

    function f2(name,age){
        console.log(name+":"+age);
    }
    f2("张三",18);
    function f3(){
        return "zheshifanhuiz"
    }
    function f4(x,y){
        return x*y;
    }
    console.log(f3());
    console.log(f4(1,9));
    let f5=function(name,age){
        console.log(name+":"+age);
    }
    f5("张飞",30);
    let f6=new Function("name","age","console.log(name+','+age)");
    f6("关羽",20);
</script>
<input type="button" value="按钮" onclick="f6()">
</body>
</html>